package com.example.job;

import com.example.service.ZhiHuService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class SyncJob {

    @Resource
    private ZhiHuService zhiHuService;

    @Scheduled(cron = "${zhihu.sync.job.cron:0 0 0 * * ?}")
    public void syncCloudServer() {
        zhiHuService.syncZhiHuJob();
    }
}
